import java.rmi.*;
import java.rmi.server.*;

public class CalculatorImpl extends UnicastRemoteObject implements Calculator {

	private static final long serialVersionUID = 1L;

	public CalculatorImpl() throws RemoteException {
	 // Costruttore vuoto	
	}
	
	public double add(double a, double b) {
		 return a+b;
	}
	
	public double divide(double a, double b) {
	 	 return a/b;
	}
	
	public double multiply(double a, double b) {
	 	 return a*b;
	}
	
	public double subtract(double a, double b) {
	 	 return a-b;
	}
}